﻿package drawer.events
{
	import flash.events.Event;
	
	public class DrawEvent extends Event
	{
		public var arg1 : * ; 
		public var arg2 : * ; 
		public var arg3 : * ; 
		
		public static const DRAWCURVE : String = "DRAWCURVE" ;
		public static const DRAWSEGMENT : String = "DRAWSEGMENT" ;
		public static const DRAWRECTANGLE : String = "DRAWRECTANGLE" ;
		public static const DRAWLINE : String = "DRAWLINE" ;
		public static const DRAWPOINT : String = "DRAWPOINT" ;
		
		public function DrawEvent(type : String, arg1:*=null, arg2:*=null, arg3:*=null ) 
		{
			super( type, true ) ;
			this.arg1 = arg1 ; 
			this.arg2 = arg2 ; 
			this.arg3 = arg3 ; 
		}
		override public function clone() : Event
		{
			return new DrawEvent( type, arg1, arg2 ) ;
		}		
		override public function toString() : String
		{
			return "[DrawEvent : " + arg1 + " " + arg2 + " " + arg3 + "]" ;
		}		
	}
}